"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Global_1 = require("../../models/Global");
// This is a demo code file
// Feel free to delete it
async function default_1(call) {
    // Error
    let time = new Date();
    const ret = await Global_1.Global.db.collection('pandian').insertOne({
        SerialNum: call.req.SerialNum,
        Location: call.req.Location,
        time: new Date()
    });
    return call.succ({ insertedId: ret.insertedId.toString() });
}
exports.default = default_1;
